package JavaProject;

public class Uebung4 {

		  public static void main ( String[] args )
		  {
		    int[] arr = {0, 1, 2, 3};
		    System.out.println( "Urspruengliches Array: "
			        + arr[0] + " " + arr[1] + " " + arr[2] + " " + arr[3] );
		    int temp;
		    int arrlen = arr.length-1;
		    for (int i = 0; i<arrlen; i++){
		    	temp=arr[i];
		    	arr[i]=arr[arrlen];
		    	arr[arrlen]=temp ;
		    	arrlen-=1;
		    }

		   

		    // Kehren Sie die Reihenfolge der Zahlen in dem Array um




		    System.out.println( "Umgekehrtes Array: "
		        + arr[0] + " " + arr[1] + " " + arr[2] + " " + arr[3] );
		   }
		}


